Optimal. Leaf size=87 \[ \frac {i \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3583, 3570,
212} \begin {gather*} \frac {i \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 3570
Rule 3583
Rubi steps
\begin {align*} \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx &=\frac {i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}}+\frac {\int \frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx}{4 a}\\ &=\frac {i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}}+\frac {i \text {Subst}\left (\int \frac {1}{2-a x^2} \, dx,x,\frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}}\right )}{2 a d}\\ &=\frac {i \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.76, size = 95, normalized size = 1.09 \begin {gather*} \frac {\left (2+\frac {2 e^{2 i (c+d x)} \tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )}{\sqrt {1+e^{2 i (c+d x)}}}\right ) \sec (c+d x)}{4 a d (-i+\tan (c+d x)) \sqrt {a+i a \tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 317 vs. \(2 (68 ) = 136\).
time = 0.73, size = 318, normalized size = 3.66
method | result | size |
default | \(\frac {\left (i \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\left (i \cos \left (d x +c \right )-i+\sin \left (d x +c \right )\right ) \sqrt {2}}{2 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right ) \cos \left (d x +c \right )+\sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\left (i \cos \left (d x +c \right )-i+\sin \left (d x +c \right )\right ) \sqrt {2}}{2 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right ) \sin \left (d x +c \right )+i \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\left (i \cos \left (d x +c \right )-i+\sin \left (d x +c \right )\right ) \sqrt {2}}{2 \sin \left (d x +c \right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}\right )+8 i \left (\cos ^{3}\left (d x +c \right )\right )+8 \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-4 i \cos \left (d x +c \right )\right ) \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{8 d \,a^{2}}\) | \(318\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 246 vs. \(2 (64) = 128\).
time = 0.39, size = 246, normalized size = 2.83 \begin {gather*} \frac {{\left (i \, \sqrt {\frac {1}{2}} a^{2} d \sqrt {\frac {1}{a^{3} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (\frac {{\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (i \, a d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} + i\right )} e^{\left (-i \, d x - i \, c\right )}}{a d}\right ) - i \, \sqrt {\frac {1}{2}} a^{2} d \sqrt {\frac {1}{a^{3} d^{2}}} e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (\frac {{\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (-i \, a d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} + i\right )} e^{\left (-i \, d x - i \, c\right )}}{a d}\right ) + \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{4 \, a^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec {\left (c + d x \right )}}{\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{\cos \left (c+d\,x\right )\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________